<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <c:set var="ctx" value="${pageContext.request.contextPath}"/>
     <html>
        <head>
        <link rel="stylesheet" href="//unpkg.com/layui@2.6.8/dist/css/layui.css">
        <script src="//unpkg.com/layui@2.6.8/dist/layui.js"></script>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>管理员登陆页面</title>
        <body>
        <div class="layui-bg-black">
            <div style="width: 650px;position: relative; left: 35%; margin-top: 400px;">
                <div class="layui-bg-green">
                <fieldset class="layui-elem-field" >
                <legend>管理员登陆页面</legend>
                <div class="layui-field-box">
                <br>
                <form class="layui-form" action="alogin" method="post">
                    <div class="layui-form-item" >
                      <label class="layui-form-label">管理员账号</label>
                      <div class="layui-input-inline">
                        <input type="text" name="aid" required  lay-verify="required" placeholder="请输入管理员账号" autocomplete="off" class="layui-input">
                      </div>
                    </div>
                    <div class="layui-form-item" >
                        <label class="layui-form-label">管理员密码</label>
                        <div class="layui-input-inline">
                          <input type="password" name="apwd" required  lay-verify="required" placeholder="请输入管理员密码" autocomplete="off" class="layui-input">
                        </div>
                      </div>
                      <div class="layui-form-item">
                        <div class="layui-input-block">
                          <button class="layui-btn layui-btn-normal" lay-submit lay-filter="formDemo">登录</button>
                          <button type="reset" class="layui-btn layui-btn-warm">重置</button>
                        </div>
                      </div>
                  </form>
                </div>
            </div>
            ${msg}
            </fieldset>
        </div>
            </div>
        </div>
         <script>
                //导航 依赖elment模块
                layui.use('element',function(){
                 var element = layui.element;
                })
                //加载form模块
                layui.use("form",function(){
                 var form = layui.form;
                })
                form.on('submit(formDemo)', function(data){
                 layer.msg(JSON.stringify(data.field));
                 return false;
                 })
             </script>
            </body>
            </html>